<div class="otherservices index">
	<h2><?php __('Otherservices');?></h2>
        <?php
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'otherservices','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php  //echo $this->Paginator->sort('id');?></th>
			<th>Organization<?php  //echo $this->Paginator->sort('organization');?></th>
			<th>Address<?php  //echo $this->Paginator->sort('address');?></th>
			<th>Type<?php  //echo $this->Paginator->sort('type');?></th>
			<th>Designation<?php  //echo $this->Paginator->sort('designation');?></th>
			<th>From Date<?php   //echo $this->Paginator->sort('from');?></th>
			<th>To Date<?php  //echo $this->Paginator->sort('to');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($otherservices as $otherservice):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['organization']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['address']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['type']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['designation']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['from']; ?>&nbsp;</td>
		<td><?php echo $otherservice['Otherservice']['to']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($otherservice['User']['id'], array('controller' => 'users', 'action' => 'view', $otherservice['User']['id'])); ?>
		</td>-->
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $otherservice['Otherservice']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'otherservices','action' => 'edit', $otherservice['Otherservice']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'otherservices','action' => 'delete', $otherservice['Otherservice']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $otherservice['Otherservice']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	
</div>
